﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Chinh-Sua-Thong-Tin-Thanh-Vien.aspx.cs" Inherits="EditProfile" %>

<%@ Register Src="MenuControl.ascx" TagName="MenuControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="thukhan">
        <div class="mt_15px">
            <img src="images/bg_login.png" width="792" height="44" /></div>
        <div class="clr">
        </div>
        <div class="mid_thukhan">
            <div style="padding: 15px 13px 0 13px;">
                <div class="login_left">
                    <div class="dktv bold">
                        CHỈNH SỬA THÔNG TIN THÀNH VIÊN</div>
                    <div class="formrow">
                        <div class="lb fl">
                            Họ Tên: <span class="warning">*</span></div>
                        <input type="text" runat="server" id="txtName" class="textbox_medium fl" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                            Display="Dynamic" ErrorMessage="Không thể rỗng"></asp:RequiredFieldValidator>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb fl">
                            Email: <span class="warning">*</span></div>
                            
                        <input type="text" runat="server" style="background-color:Silver;" id="txtEmail" disabled class="textbox_medium fl" />
                        
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb fl">
                            Tỉnh/thành phố: <span class="warning">*</span></div>
                        <asp:DropDownList ID="ddlProvince" runat="server">
                        </asp:DropDownList>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb fl">
                            Họ tên bé:</div>
                        <input name="" type="text" runat="server" id="txtNamebaby" class="textbox_medium fl" />
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb fl">
                            Ngày sinh của bé:</div>
                        <asp:DropDownList ID="d" runat="server" CssClass="select_small fl">
                        </asp:DropDownList>
                        <asp:DropDownList ID="m" runat="server" CssClass="select_small fl">
                        </asp:DropDownList>
                        <asp:DropDownList ID="y" runat="server" CssClass="select_small fl">
                        </asp:DropDownList>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow">
                        <div class="lb fl">
                            Loại sữa đang dùng:</div>
                        <asp:DropDownList Width="190px" CssClass="select fl" ID="ddlTypeMilk" runat="server">
                        </asp:DropDownList>
                        <div class="clr">
                        </div>
                    </div>
                    <div class="formrow" style="margin-left: 134px;">
                        <asp:LinkButton ID="linkRegister" runat="server" OnClientClick="return checkError()"
                            OnClick="linkRegister_Click">
                        <img src="images/btn_capnhat.gif" width="88" height="27" /></asp:LinkButton></div>
                </div>
                <uc1:MenuControl ID="MenuControl1" runat="server" />
                <div class="clr">
                </div>
            </div>
        </div>
        <div class="bot_thukhan">
        </div>

        <script type="text/javascript">
       function checkError()
       {
           var ddlProvince = document.getElementById("<%=ddlProvince.ClientID%>");
         
           if(ddlProvince.value=='0')
           {
               alert("Vui lòng chọn tỉnh thành phố");
               return false;
           }
           else
           {
               return true;
           }
       }
      
        </script>

    </div>
</asp:Content>
